package ioc04;

import lombok.Data;

/**
 * Author：汤小洋
 * Date：2023-12-13 14:41
 * Description：<描述>
 */
@Data
public class SpringBean {

    private OtherBean otherBean;

    public SpringBean() {
        System.out.println("SpringBean无参构造方法");
    }

    public SpringBean(OtherBean otherBean) {
        System.out.println("SpringBean有参构造方法");
        this.otherBean = otherBean;
    }

    public void setOtherBean(OtherBean otherBean) {
        System.out.println("SpringBean的set方法.....");
        this.otherBean = otherBean;
    }
}
